﻿


/*========================================================================================
//Goodasong -- MySnake
//创建者: 郑雪松
//创建时间：2012年12月18日
//类描述：实体类 Booking (属性说明自动提取数据库字段的描述信息)
//最后修改者:郑雪松
//最后修改时间:2012年12月18日	
=========================================================================================*/
using System;
using System.Web;
using System.Runtime.Serialization;

namespace COM.Rights.Model
{
    /// <summary>
    /// 实体类 Booking (属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]	  
    [Model(Name = "Booking", PrimaryKey = "Id", ModelType = ModelType.Table, Condition = "1=1", IsNeedRecordModify = true)]
    public partial class BookingInfo : BaseModel
    {
        public BookingInfo()
        {            
            PrimaryKey = "Id"; 
			Fields.Add("Id");//Id
			Fields.Add("Proname");//proname
			Fields.Add("Quantity");//quantity
			Fields.Add("Amount");//amount
			Fields.Add("Cusname");//cusname
			Fields.Add("Custel");//custel
			Fields.Add("Address");//address
			Fields.Add("Post");//post
			Fields.Add("Email");//email
			Fields.Add("Remark");//remark
			Fields.Add("Createdate");//createdate
			Fields.Add("Paymethod");//paymethod
			Fields.Add("Is_index");//is_index
			Fields.Add("Lasteditby");//lasteditby
			Fields.Add("Lasteditdate");//lasteditdate
			Fields.Add("Cusip");//cusip
			Fields.Add("Remark2");//remark2
			Fields.Add("Orderno");//orderno
			Fields.Add("Ordersource");//ordersource
			
			
			CanNotNullFields.Add("Id");//Id不能为空!				
			this.OnCreated();			
			this.OnModelCreated();
        }
		public BookingInfo(bool isNewInfo):this()
        {
			IsNew = isNewInfo;
		}
		#region 方法

        public void OnCreated() { this.SetPrimaryKeyValue(); }		

		public override void SetPrimaryKeyValue()
        {
			
            Id = Guid.NewGuid();
        }
        #endregion 
		
		#region 成员变量
				
		private Guid _Id;//id
		private string _Proname;//proname
		private int? _Quantity;//quantity
		private int? _Amount;//amount
		private string _Cusname;//cusname
		private string _Custel;//custel
		private string _Address;//address
		private string _Post;//post
		private string _Email;//email
		private string _Remark;//remark
		private DateTime? _Createdate;//createdate
		private int? _Paymethod;//paymethod
		private int? _Is_index;//is_index
		private string _Lasteditby;//lasteditby
		private DateTime? _Lasteditdate;//lasteditdate
		private string _Cusip;//cusip
		private string _Remark2;//remark2
		private string _Orderno;//orderno
		private string _Ordersource;//ordersource
		
		#endregion
		
		#region 属性 
		
		/// <summary>
        /// id
        /// </summary>       
		[ModelField(Description = "Id", Type = typeof(Guid), ErrorMessage = "id信息错误!", FieldType = FieldType.Normal, IsKeyField = true,IsUnique = true, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 16,  DbType = "uniqueidentifier", IsNeedRecordModify = true)]
        public virtual Guid Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                if (_Id != value || (_Id == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Id", _Id, value, "uniqueidentifier", "Id");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnIdChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Id = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnIdChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Id = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// proname
        /// </summary>       
		[ModelField(Description = "proname", Type = typeof(string), ErrorMessage = "proname信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Proname
        {
            get
            {
                return this._Proname;
            }
            set
            {
                if (_Proname != value || (_Proname == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Proname", _Proname, value, "varchar", "proname");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPronameChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Proname = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPronameChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Proname = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// quantity
        /// </summary>       
		[ModelField(Description = "quantity", Type = typeof(int?), ErrorMessage = "quantity信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Quantity
        {
            get
            {
                return this._Quantity;
            }
            set
            {
                if (_Quantity != value || (_Quantity == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Quantity", _Quantity, value, "int", "quantity");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnQuantityChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Quantity = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnQuantityChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Quantity = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// amount
        /// </summary>       
		[ModelField(Description = "amount", Type = typeof(int?), ErrorMessage = "amount信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Amount
        {
            get
            {
                return this._Amount;
            }
            set
            {
                if (_Amount != value || (_Amount == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Amount", _Amount, value, "int", "amount");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnAmountChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Amount = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnAmountChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Amount = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// cusname
        /// </summary>       
		[ModelField(Description = "cusname", Type = typeof(string), ErrorMessage = "cusname信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Cusname
        {
            get
            {
                return this._Cusname;
            }
            set
            {
                if (_Cusname != value || (_Cusname == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Cusname", _Cusname, value, "varchar", "cusname");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCusnameChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Cusname = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCusnameChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Cusname = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// custel
        /// </summary>       
		[ModelField(Description = "custel", Type = typeof(string), ErrorMessage = "custel信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Custel
        {
            get
            {
                return this._Custel;
            }
            set
            {
                if (_Custel != value || (_Custel == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Custel", _Custel, value, "varchar", "custel");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCustelChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Custel = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCustelChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Custel = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// address
        /// </summary>       
		[ModelField(Description = "address", Type = typeof(string), ErrorMessage = "address信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 500,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Address
        {
            get
            {
                return this._Address;
            }
            set
            {
                if (_Address != value || (_Address == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Address", _Address, value, "varchar", "address");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnAddressChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Address = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnAddressChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Address = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// post
        /// </summary>       
		[ModelField(Description = "post", Type = typeof(string), ErrorMessage = "post信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Post
        {
            get
            {
                return this._Post;
            }
            set
            {
                if (_Post != value || (_Post == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Post", _Post, value, "varchar", "post");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPostChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Post = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPostChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Post = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// email
        /// </summary>       
		[ModelField(Description = "email", Type = typeof(string), ErrorMessage = "email信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 200,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Email
        {
            get
            {
                return this._Email;
            }
            set
            {
                if (_Email != value || (_Email == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Email", _Email, value, "varchar", "email");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnEmailChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Email = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnEmailChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Email = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// remark
        /// </summary>       
		[ModelField(Description = "remark", Type = typeof(string), ErrorMessage = "remark信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 16,  DbType = "text", IsNeedRecordModify = true)]
        public virtual string Remark
        {
            get
            {
                return this._Remark;
            }
            set
            {
                if (_Remark != value || (_Remark == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Remark", _Remark, value, "text", "remark");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnRemarkChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Remark = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnRemarkChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Remark = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// createdate
        /// </summary>       
		[ModelField(Description = "createdate", Type = typeof(DateTime?), ErrorMessage = "createdate信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 8,  DbType = "datetime", IsNeedRecordModify = true)]
        public virtual DateTime? Createdate
        {
            get
            {
                return this._Createdate;
            }
            set
            {
                if (_Createdate != value || (_Createdate == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Createdate", _Createdate, value, "datetime", "createdate");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCreatedateChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Createdate = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCreatedateChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Createdate = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// paymethod
        /// </summary>       
		[ModelField(Description = "paymethod", Type = typeof(int?), ErrorMessage = "paymethod信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Paymethod
        {
            get
            {
                return this._Paymethod;
            }
            set
            {
                if (_Paymethod != value || (_Paymethod == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Paymethod", _Paymethod, value, "int", "paymethod");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPaymethodChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Paymethod = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPaymethodChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Paymethod = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// is_index
        /// </summary>       
		[ModelField(Description = "is_index", Type = typeof(int?), ErrorMessage = "is_index信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Is_index
        {
            get
            {
                return this._Is_index;
            }
            set
            {
                if (_Is_index != value || (_Is_index == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Is_index", _Is_index, value, "int", "is_index");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnIs_indexChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Is_index = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnIs_indexChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Is_index = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// lasteditby
        /// </summary>       
		[ModelField(Description = "lasteditby", Type = typeof(string), ErrorMessage = "lasteditby信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Lasteditby
        {
            get
            {
                return this._Lasteditby;
            }
            set
            {
                if (_Lasteditby != value || (_Lasteditby == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Lasteditby", _Lasteditby, value, "varchar", "lasteditby");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnLasteditbyChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Lasteditby = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnLasteditbyChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Lasteditby = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// lasteditdate
        /// </summary>       
		[ModelField(Description = "lasteditdate", Type = typeof(DateTime?), ErrorMessage = "lasteditdate信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 8,  DbType = "datetime", IsNeedRecordModify = true)]
        public virtual DateTime? Lasteditdate
        {
            get
            {
                return this._Lasteditdate;
            }
            set
            {
                if (_Lasteditdate != value || (_Lasteditdate == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Lasteditdate", _Lasteditdate, value, "datetime", "lasteditdate");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnLasteditdateChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Lasteditdate = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnLasteditdateChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Lasteditdate = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// cusip
        /// </summary>       
		[ModelField(Description = "cusip", Type = typeof(string), ErrorMessage = "cusip信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Cusip
        {
            get
            {
                return this._Cusip;
            }
            set
            {
                if (_Cusip != value || (_Cusip == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Cusip", _Cusip, value, "varchar", "cusip");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCusipChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Cusip = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCusipChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Cusip = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// remark2
        /// </summary>       
		[ModelField(Description = "remark2", Type = typeof(string), ErrorMessage = "remark2信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 16,  DbType = "text", IsNeedRecordModify = true)]
        public virtual string Remark2
        {
            get
            {
                return this._Remark2;
            }
            set
            {
                if (_Remark2 != value || (_Remark2 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Remark2", _Remark2, value, "text", "remark2");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnRemark2Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Remark2 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnRemark2Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Remark2 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// orderno
        /// </summary>       
		[ModelField(Description = "orderno", Type = typeof(string), ErrorMessage = "orderno信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Orderno
        {
            get
            {
                return this._Orderno;
            }
            set
            {
                if (_Orderno != value || (_Orderno == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Orderno", _Orderno, value, "varchar", "orderno");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOrdernoChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Orderno = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOrdernoChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Orderno = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// ordersource
        /// </summary>       
		[ModelField(Description = "ordersource", Type = typeof(string), ErrorMessage = "ordersource信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Ordersource
        {
            get
            {
                return this._Ordersource;
            }
            set
            {
                if (_Ordersource != value || (_Ordersource == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Booking", "Ordersource", _Ordersource, value, "varchar", "ordersource");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOrdersourceChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Ordersource = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOrdersourceChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Ordersource = value;
                    }
                }
            }
        }
		#endregion 属性
				  
		#region 属性更改事件
		
		partial void OnIdChanging(ModifyInfo modifyInfo);//idId改变之前发生
        partial void OnIdChanged(ModifyInfo modifyInfo);//idId改变之后发生
		partial void OnPronameChanging(ModifyInfo modifyInfo);//pronameProname改变之前发生
        partial void OnPronameChanged(ModifyInfo modifyInfo);//pronameProname改变之后发生
		partial void OnQuantityChanging(ModifyInfo modifyInfo);//quantityQuantity改变之前发生
        partial void OnQuantityChanged(ModifyInfo modifyInfo);//quantityQuantity改变之后发生
		partial void OnAmountChanging(ModifyInfo modifyInfo);//amountAmount改变之前发生
        partial void OnAmountChanged(ModifyInfo modifyInfo);//amountAmount改变之后发生
		partial void OnCusnameChanging(ModifyInfo modifyInfo);//cusnameCusname改变之前发生
        partial void OnCusnameChanged(ModifyInfo modifyInfo);//cusnameCusname改变之后发生
		partial void OnCustelChanging(ModifyInfo modifyInfo);//custelCustel改变之前发生
        partial void OnCustelChanged(ModifyInfo modifyInfo);//custelCustel改变之后发生
		partial void OnAddressChanging(ModifyInfo modifyInfo);//addressAddress改变之前发生
        partial void OnAddressChanged(ModifyInfo modifyInfo);//addressAddress改变之后发生
		partial void OnPostChanging(ModifyInfo modifyInfo);//postPost改变之前发生
        partial void OnPostChanged(ModifyInfo modifyInfo);//postPost改变之后发生
		partial void OnEmailChanging(ModifyInfo modifyInfo);//emailEmail改变之前发生
        partial void OnEmailChanged(ModifyInfo modifyInfo);//emailEmail改变之后发生
		partial void OnRemarkChanging(ModifyInfo modifyInfo);//remarkRemark改变之前发生
        partial void OnRemarkChanged(ModifyInfo modifyInfo);//remarkRemark改变之后发生
		partial void OnCreatedateChanging(ModifyInfo modifyInfo);//createdateCreatedate改变之前发生
        partial void OnCreatedateChanged(ModifyInfo modifyInfo);//createdateCreatedate改变之后发生
		partial void OnPaymethodChanging(ModifyInfo modifyInfo);//paymethodPaymethod改变之前发生
        partial void OnPaymethodChanged(ModifyInfo modifyInfo);//paymethodPaymethod改变之后发生
		partial void OnIs_indexChanging(ModifyInfo modifyInfo);//is_indexIs_index改变之前发生
        partial void OnIs_indexChanged(ModifyInfo modifyInfo);//is_indexIs_index改变之后发生
		partial void OnLasteditbyChanging(ModifyInfo modifyInfo);//lasteditbyLasteditby改变之前发生
        partial void OnLasteditbyChanged(ModifyInfo modifyInfo);//lasteditbyLasteditby改变之后发生
		partial void OnLasteditdateChanging(ModifyInfo modifyInfo);//lasteditdateLasteditdate改变之前发生
        partial void OnLasteditdateChanged(ModifyInfo modifyInfo);//lasteditdateLasteditdate改变之后发生
		partial void OnCusipChanging(ModifyInfo modifyInfo);//cusipCusip改变之前发生
        partial void OnCusipChanged(ModifyInfo modifyInfo);//cusipCusip改变之后发生
		partial void OnRemark2Changing(ModifyInfo modifyInfo);//remark2Remark2改变之前发生
        partial void OnRemark2Changed(ModifyInfo modifyInfo);//remark2Remark2改变之后发生
		partial void OnOrdernoChanging(ModifyInfo modifyInfo);//ordernoOrderno改变之前发生
        partial void OnOrdernoChanged(ModifyInfo modifyInfo);//ordernoOrderno改变之后发生
		partial void OnOrdersourceChanging(ModifyInfo modifyInfo);//ordersourceOrdersource改变之前发生
        partial void OnOrdersourceChanged(ModifyInfo modifyInfo);//ordersourceOrdersource改变之后发生
		
		#endregion		
		public virtual string DetailURI { get; set; }
        public virtual string DetailHTMLURI { get; set; }
		public virtual string ManageEditURI {get; set;}
		public virtual string ManageDetailURI {get; set;}
		public override void OnLoaded()
        {
            base.OnLoaded();	
			DetailURI = ZModel.InitDetailURI("Booking", "Id", Id);
            DetailHTMLURI = ZModel.InitDetailHTMLURI("Booking", "Id", Id);		
			ManageEditURI = ZModel.InitMEditURI("Booking", "Id", Id);	
		 	ManageDetailURI = ZModel.InitMDetailURI("Booking", "Id", Id);	
			OnModelLoaded();
        }
		
		partial void OnModelCreated();
        partial void OnModelLoaded();
	}	
}